DataCollection | ComponentOne
C1.DataCollection.EntityFrameworkCore Assembly / C1.DataCollection.EntityFrameworkCore Namespace / C1EntityFrameworkCoreVirtualDataCollection<T> Class / C1EntityFrameworkCoreVirtualDataCollection<T> Constructor / C1EntityFrameworkCoreVirtualDataCollection<T> Constructor(IQueryable<T>,Int32,Int32,Nullable<TimeSpan>)
The IQueryable source of the collection.
The maximum number of pages that will be requested concurrently. If 1 is specified, the pages will be fetched one after the other. Avoid setting a big number to prevent saturating the server with too many requests.
The maximum number of pages that will be executing, or waiting. When this number is surpassed the oldest requested pages will be cancelled. The value of this parameter must be greater than maxParallelRequests.
The delay before requesting a page. When this parameter is greater than zero, it helps avoid bursts of page requests, typically caused by scrolling down operations.

In This Topic
    C1EntityFrameworkCoreVirtualDataCollection<T> Constructor(IQueryable<T>,Int32,Int32,Nullable<TimeSpan>)
    In This Topic
    Initializes a new instance of the C1EntityFrameworkCoreVirtualDataCollection<T> class.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal query As IQueryable(Of T), _
       Optional ByVal maxParallelRequests As Integer, _
       Optional ByVal maxActiveRequests As Integer, _
       Optional ByVal requestDelay As Nullable(Of TimeSpan) _
    )
    public C1EntityFrameworkCoreVirtualDataCollection<T>( 
       IQueryable<T> query,
       int maxParallelRequests,
       int maxActiveRequests,
       Nullable<TimeSpan> requestDelay
    )

    Parameters

    query
    The IQueryable source of the collection.
    maxParallelRequests
    The maximum number of pages that will be requested concurrently. If 1 is specified, the pages will be fetched one after the other. Avoid setting a big number to prevent saturating the server with too many requests.
    maxActiveRequests
    The maximum number of pages that will be executing, or waiting. When this number is surpassed the oldest requested pages will be cancelled. The value of this parameter must be greater than maxParallelRequests.
    requestDelay
    The delay before requesting a page. When this parameter is greater than zero, it helps avoid bursts of page requests, typically caused by scrolling down operations.
    See Also